﻿namespace Sgr.Oss.Services
{
    /// <summary>
    /// 对象元数据
    /// </summary>
    public class ObjectMetadata
    {
        /// <summary>
        /// 对象大小
        /// </summary>
        public long Size { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// Content-Type
        /// </summary>
        public string ContentType { get; set; } = "";

        /// <summary>
        /// ETag
        /// </summary>
        public string ETag { get; set; } = "";

        /// <summary>
        /// 自定义元数据
        /// </summary>
        public IDictionary<string, string> UserMetadata { get; set; } = new Dictionary<string, string>();
    }
}